//
//  UserAccountNSObject.swift
//  XiaozhuangWeibo
//
//  Created by Maxwell on 11/28/18.
//  Copyright © 2018 Maxwell. All rights reserved.
//

import UIKit
import SwiftyJSON
import Alamofire


class UserAccount{

    var access_token:String!
    var expires_in:String?
    
    var uid:String?
    
    var weiboHomeDatas = [WeiboData]()
    let home_timeline_url = "https://api.weibo.com/2/statuses/home_timeline.json"
    // https://api.weibo.com/2/statuses/home_timeline.json?access_token=2.00I_8NYBgegiKB12dbf5f9fcTruN8C
    init(jsonData: JSON) {
        access_token = jsonData["access_token"].stringValue
        expires_in = jsonData["expires_in"].stringValue
        uid = jsonData["uid"].stringValue
    }
    init(access_token:String){
        self.access_token = access_token
    }
    

}
